public class ThreadDemo10 {
    public static void main(String[] args) {
        MyThread3 myThread3 = new MyThread3();
        myThread3.start();
    }
}

class MyThread3 extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(i);
        }
    }
}
